﻿@using System.Activities.Expressions
@using System.Activities.Expressions
<div class="col-md-2 left-sidebar">
    <div class="sidebar-minified js-toggle-minified">
        <i class="fa fa-angle-left"></i>
    </div>
    <nav class="main-nav">
        <ul class="main-menu">

            <li>
                <a href="Anasayfa">
                    <i class="fa fa-dashboard fa-fw"></i>
                    <span class="text">Pano</span>
                </a>
            </li>
            <li>
                <a href="Anasayfa">
                    <i class="fa fa-wrench fa-fw"></i>
                    <span class="text">Genel Ayarlar</span>
                </a>
            </li>
            @if (User.IsInRole("Geliştirici") || User.IsInRole("Daire Başkanı") || User.IsInRole("Çözümleyici") || User.IsInRole("Kullanıcı"))
            {
                <li>
                    <a href="#" class="js-sub-menu-toggle">
                        <i class="fa fa-tasks fa-fw"></i>
                        <span class="text">Görev Yönetimi</span>
                        <i class="toggle-icon fa fa-angle-left"></i>
                    </a>
                    <ul class="sub-menu open">
                        <li>
                            <a href="/Task/Add">
                                <span class="text">Görev Ekle</span>
                            </a>
                        </li>
                        <li>
                            <a href="/Task/Index">
                                <span class="text">Görev Listele</span>
                            </a>
                        </li>
                    </ul>
                </li>
            }
            @if (User.IsInRole("Geliştirici"))
            {
                <li>
                    <a href="#" class="js-sub-menu-toggle">
                        <i class="fa fa-pie-chart fa-fw"></i>
                        <span class="text">Durum Yönetimi</span>
                        <i class="toggle-icon fa fa-angle-left"></i>
                    </a>
                    <ul class="sub-menu">

                        <li>

                            <a href="/Status/Add">
                                <span class="text">Durum Ekle</span>
                            </a>
                        </li>

                        <li>
                            <a href="/Status/Index">
                                <span class="text">Durum Listele</span>
                            </a>
                        </li>
                    </ul>
                </li>      }
            @if (User.IsInRole("Geliştirici"))
            {
                <li>
                    <a href="#" class="js-sub-menu-toggle">
                        <i class="fa fa-exclamation-circle fa-fw"></i>
                        <span class="text">Öncelik Yönetimi</span>
                        <i class="toggle-icon fa fa-angle-left"></i>
                    </a>
                    <ul class="sub-menu">

                        <li>
                            <a href="/Priority/Add">
                                <span class="text">Öncelik Ekle</span>
                            </a>
                        </li>

                        <li>
                            <a href="/Priority/Index">
                                <span class="text">Öncelik Listele</span>
                            </a>
                        </li>
                    </ul>
                </li>
            }
            @if (User.IsInRole("Geliştirici") || User.IsInRole("Daire Başkanı") || User.IsInRole("Proje Yöneticisi"))
            {

                <li>
                    <a href="#" class="js-sub-menu-toggle">
                        <i class="fa fa-cubes fa-fw"></i>
                        <span class="text">Proje Yönetimi</span>
                        <i class="toggle-icon fa fa-angle-left"></i>
                    </a>
                    <ul class="sub-menu">
                        <li>
                            <a href="/Project/Add">
                                <span class="text">Proje Ekle</span>
                            </a>
                        </li>
                        <li>
                            <a href="/Project/Index">
                                <span class="text">Proje Listele</span>
                            </a>
                        </li>
                    </ul>
                </li>
            }
            @if (User.IsInRole("Geliştirici"))
            {
                <li>
                    <a href="#" class="js-sub-menu-toggle">
                        <i class="fa fa-users fa-fw"></i>
                        <span class="text">Rol Yönetimi</span>
                        <i class="toggle-icon fa fa-angle-left"></i>
                    </a>
                    <ul class="sub-menu">
                        <li>
                            <a href="/Role/Add">
                                <span class="text">Rol Ekle</span>
                            </a>
                        </li>
                        <li>
                            <a href="/Role/Index">
                                <span class="text">Rol Listele</span>
                            </a>
                        </li>
                    </ul>
                </li>
            }
            @if (User.IsInRole("Geliştirici"))
            {

                <li>
                    <a href="#" class="js-sub-menu-toggle">
                        <i class="fa fa-user fa-fw"></i>
                        <span class="text">Kullanıcı Yönetimi</span>
                        <i class="toggle-icon fa fa-angle-left"></i>
                    </a>
                    <ul class="sub-menu">
                        <li>
                            <a href="/User/Add">
                                <span class="text">Kullanıcı Ekle</span>
                            </a>
                        </li>
                        <li>
                            <a href="/User/Index">
                                <span class="text">Kullanıcı Listele</span>
                            </a>
                        </li>
                    </ul>
                </li>
            }
        </ul>
    </nav>
</div>

